<?php

namespace app\common\model;

use app\common\model\TimeModel;

class BusinessDistrictAdmin extends TimeModel
{

    protected $name = "business_district_admin";

    protected $deleteTime = "delete_time";
    protected $defaultSoftDelete = 0;


    public function User()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }

    public function district()
    {
        return $this->belongsTo(BusinessDistrict::class, 'district_id', 'id');
    }
}